<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
    <f:loadBundle basename="easy.core.messageresources.Rotulo" var="rotulo"/>

    <head>
        <title>Easy</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <script src='../../js/easy.js' type="text/javascript"/>
    </head>
    
    <body>
        <div class="main">
            <div class="header">
                <ui:insert name="header"/>
            </div>
            <td style="width: 775px">
				<rich:spacer height="5"/>
				<a4j:outputPanel id="mensagens">
				<h:messages globalOnly="false" layout="list"
						styleClass="mensagens" infoClass="mensagensok"
						errorClass="mensagenserro" warnClass="mensagensalerta"
						showDetail="true" showSummary="false" />
				</a4j:outputPanel>
			</td>
            <div class="body">
                <ui:insert name="body" />
            </div>
        
            <div id="center" style="margin:auto;">
                <ui:insert name="content"/>
            </div>
        
            <div class="footer">

            </div>
        </div>

        <!-- MODAL AGUARDE -->
        <a4j:status id="aguarde" onstart="javascript:Richfaces.showModalPanel('aguardeModal')" onstop="javascript:Richfaces.hideModalPanel('aguardeModal')"/>
        <rich:modalPanel id="aguardeModal" height="70" width="180">
            <f:facet name="header">
                <h:outputText value="#{rotulo['aguarde']}" />
            </f:facet>

            <h:graphicImage value="/images/icons/ajax-loader-bar.gif" />
        </rich:modalPanel>

    </body>
</html>